#ifndef CUBE_POINT_H_
#define CUBE_POINT_H_

struct Point
{
	Point(){}
	Point( int posX, int posY ) : x( posX ), y( posY ){}

	union
	{
		int			data;
		struct
		{
			short	x;
			short	y;
		};
	};

	Point&	operator = ( const Point& p ){ this->data = p.data; return *this; }

	bool	operator == ( const Point& p ){ return ( this->data == p.data ); }
};

Point operator + ( const Point& p1, const Point& p2 );
Point operator - ( const Point& p1, const Point& p2 );
Point operator * ( const Point& p1, const Point& p2 );

#endif